/**
 * Note: The returned array must be malloced, assume caller calls free().
 */
int* targetIndices(int* nums, int numsSize, int target, int* returnSize){
				int max = 0;
				int counter = 0;
				int i;
				for(i = 0; i < numsSize; i++) {
				    if(nums[i] < target) {
				        max++;
				    }
				    if(nums[i] == target) {
				        counter++;
				    }
				}
				for(i = 0; i < counter; i++) {
				    nums[i] = max + i;
				}
				*returnSize = counter;
				return nums;
}
